Ext.define("AmpleHarvest.DATA.Store.cGroupList",
{
	extend			: 'Ext.data.Store',
	requires						:
	[
		"AmpleHarvest.DATA.Model.cGroups"
	],
	model			: 'AmpleHarvest.DATA.Model.cGroups',
	proxy			:
	{
		type	: 'ajax',
		url		: obj_config.C_STR_EXTERNAL_PATH+'/rest/group/list.php',
		reader	:
		{
			type			: 'json',
			totalProperty	: "total",
			root			: 'data'
		}
	},
	setOptions		: function(options)
	{
		this.proxy.extraParams = options;
	}
}
);
